import axios from 'axios'

export default {
    httpRequest(method, url, params, data) {
        return axios({
            url,
            method,
            baseURL:"/api",
            params,
            data,
            timeout: 10000,
            headers: {
                "content-type": "application/json;charset=utf-8",
            },
        }).then((response) => {
            return response.data;
        });
    },
};